/***********************
    ICS321 Project GUI
************************/
package GUI;

import java.awt.*;
import javax.swing.*;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;


public class StringFrame {
	private static final JPanel headerPanel = new JPanel();
	private static final JLabel lblElectronicInventory = new JLabel("Electronic Inventory");
	private static final JPanel displayInventoryPanel = new JPanel();
	private static final JLayeredPane layeredPane = new JLayeredPane();
	private static final JButton btnAdd = new JButton("Add");
	private static final JButton btnSearch = new JButton("Search");
	private static final JButton btnDelete = new JButton("Delete");
	private static final JButton btnAudio = new JButton("Audio");
	private static final JButton btnMasterInventoryList = new JButton("Master Inventory List");
	private static final JButton btnCarElectronic = new JButton("Car Electronic");
	private static final JButton btnCameraCamcorder = new JButton("Camera & Camcorder");
	private static final JButton btnCellphone = new JButton("Cellphone");
	private static final JButton btnComputerTablet = new JButton("Computer & Tablet");
	private static final JButton btnPrinter = new JButton("Printer");

	public static void main(String[] args) {
		GraphicsEnvironment e = GraphicsEnvironment.getLocalGraphicsEnvironment();

		JFrame f=new JFrame("Electronic Inventory");
		f.getContentPane().setBackground(new Color(224, 255, 255));
		JPanel p =new JPanel();

		f.setMaximizedBounds(e.getMaximumWindowBounds());
		f.setExtendedState( f.getExtendedState()|JFrame.MAXIMIZED_BOTH );
		f.setSize(e.getMaximumWindowBounds().width, e.getMaximumWindowBounds().height);
		f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		f.setResizable(false);
		f.getContentPane().setLayout(null);
		
		headerPanel.setBounds(0, 0, 1360, 112);
		headerPanel.setBackground(new Color(0, 0, 205));
		f.getContentPane().add(headerPanel);
		headerPanel.setLayout(null);
		lblElectronicInventory.setForeground(new Color(255, 250, 250));
		lblElectronicInventory.setFont(new Font("Tahoma", Font.BOLD, 33));
		lblElectronicInventory.setBounds(61, 53, 377, 59);
		headerPanel.add(lblElectronicInventory);
		
		/* Display inventory items */
		layeredPane.setBounds(0, 0, 1, 1);							//Blank bottom right area
		f.getContentPane().add(layeredPane);
		displayInventoryPanel.setBackground(new Color(245, 255, 250));
		displayInventoryPanel.setBounds(288, 195, 1072, 492);
		f.getContentPane().add(displayInventoryPanel);
		
		/***************************************************************************************/
		
		/* Add, Delete, Search buttons */
		btnAdd.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				System.out.println("Test Add Button");
			}
		});
		btnAdd.setFont(new Font("Tahoma", Font.BOLD, 13));
		btnAdd.setBounds(918, 157, 97, 25);
		f.getContentPane().add(btnAdd);
		
		btnSearch.setFont(new Font("Tahoma", Font.BOLD, 13));
		btnSearch.setBounds(1164, 157, 97, 25);
		f.getContentPane().add(btnSearch);
		
		btnDelete.setFont(new Font("Tahoma", Font.BOLD, 13));
		btnDelete.setBounds(1041, 157, 97, 25);
		f.getContentPane().add(btnDelete);
		
		/***************************************************************************************/
		
		/* Buttons: Categories */
		btnMasterInventoryList.setFont(new Font("Tahoma", Font.BOLD, 14));
		btnMasterInventoryList.setBounds(39, 226, 194, 25);
		f.getContentPane().add(btnMasterInventoryList);
		
		btnAudio.setFont(new Font("Tahoma", Font.BOLD, 14));
		btnAudio.setBounds(39, 265, 194, 25);
		f.getContentPane().add(btnAudio);
		
		btnCarElectronic.setFont(new Font("Tahoma", Font.BOLD, 14));
		btnCarElectronic.setBounds(39, 303, 194, 25);
		f.getContentPane().add(btnCarElectronic);
		
		btnCameraCamcorder.setFont(new Font("Tahoma", Font.BOLD, 14));
		btnCameraCamcorder.setBounds(39, 341, 194, 25);
		f.getContentPane().add(btnCameraCamcorder);
		
		btnCellphone.setFont(new Font("Tahoma", Font.BOLD, 14));
		btnCellphone.setBounds(39, 379, 194, 25);
		f.getContentPane().add(btnCellphone);
		
		btnComputerTablet.setFont(new Font("Tahoma", Font.BOLD, 14));
		btnComputerTablet.setBounds(39, 417, 194, 25);
		f.getContentPane().add(btnComputerTablet);
		
		btnPrinter.setFont(new Font("Tahoma", Font.BOLD, 14));
		btnPrinter.setBounds(39, 455, 194, 25);
		f.getContentPane().add(btnPrinter);
		
		/***************************************************************************************/


		
	
		f.setVisible(true);
	
	}
}